package com.team.service;

import com.github.pagehelper.PageInfo;
import com.team.entity.AppInfo;
import com.team.utils.AppInfoCondition;

import java.util.List;

public interface AppInfoService {
    PageInfo<AppInfo> getAllBasicAPPInformation(AppInfoCondition appInfoCondition);

    int addAppInfo(AppInfo appInfo);

    AppInfo getSingleAppInfo(Long id);

    /**
     * 更新app
     * @param appInfo
     * @return
     */
    int updateAppInfo(AppInfo appInfo);

    /**
     * 删除app信息以及对应的版本
     * @param id
     */
    void delAppInfo(Long id);

    PageInfo<AppInfo> getAppInfoByStatus(AppInfoCondition appInfoCondition);

    AppInfo getAppInfoForChecked(Long id);

    int updateAppStatus(Long id,Long status);
}
